package homework2;

public class Sector extends Shape{

	private double radius;
	private double arcLength;
	
	public Sector(double radius,double arcLength) {
		super("扇形");
		this.radius=radius;
		this.arcLength=arcLength;
	}

	public void calculate() {
		super.calculate();
		this.area=radius*arcLength/2;
	}
	public void show() {
		System.out.println("扇形的半径为："+this.radius+"弧长为："+this.arcLength);
		super.show();
	}
}
